import _ from 'lodash'
import numRef from './ref.json'
export function numToWrod(num){
  console.log(_)
  return _.reduce(
    numRef,
    (accum,ref) =>(ref.num === num ? ref.word : accum)
  )
}
export function wordToNum(word){
  return _.reduce(
    numRef,
    (accum,ref) =>(ref.word === word && word.toLowerCase() ? ref.num : accum),
    -1
  )
}